<%@page language="java" contentType="text/html; charset=utf-8" %>
<%@page import="java.util.ArrayList"%>
<%@page import="com.ibm.news.beans.News"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>宇晨网络新闻中心后台</title>
	</head>
	<link rel="stylesheet" href="../css/style.css">
	<body>
		<div align="center">
			<iframe src="../bTop.html" marginheight="0" marginwidth="0"
				scrolling="no" width="799" height="122"></iframe>
			<table width="800" height="465" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td width="196" rowspan="2" valign="top">
						<iframe src="../bleft.html" marginheight="0" marginwidth="0"
							scrolling="no" width="200" height="497"></iframe>
					</td>
					<td width="604" height="57" background="../bImage/place.jpg">
						<table width="601" height="36" border="0" cellpadding="0"
							cellspacing="0">
							<tr>
								<td>
									&nbsp;&nbsp;当前位置提示&nbsp;&gt;&gt;&nbsp;
								</td>
							</tr>
							<tr>
								<td>
									&nbsp;
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="400" align="center" valign="top"
						background="../bImage/big.jpg">
						<table width="601" border="0" cellpadding="0" cellspacing="0"
							background="../bImage/placeNext.jpg">
							<tr>
								<td height="21">
									&nbsp;
								</td>
								<td>
									——类新闻管理
								</td>
							</tr>
						</table>
						<table width="601" height="36" border="1" cellpadding="0"
							cellspacing="0">
							<tr>
								<td>编号</td>
								<td>类别</td>
								<td>标题</td>
								<td>内容</td>
								<td>创建时间</td>
							</tr>
							<%
								ArrayList<News> listNews = (ArrayList<News>)request.getAttribute("list");
								for(int i = 0; i < listNews.size(); i ++) {
									News news = listNews.get(i);
							%>
							<tr>
								<td><%=news.getId() %></td>
								<td><%=news.getBigSort() %></td>
								<td><%=news.getTitle() %></td>
								<td><%=news.getContent() %></td>
								<td><%=news.getCreateTime() %></td>
							</tr>
							<%
								}
							%>
						</table>
						<br>
						<a href="insertNews.jsp" target="_parent">添加新闻</a>&nbsp;&nbsp;&nbsp;或者&nbsp;&nbsp;&nbsp;
						<a href="../bSort/selectSort.html">详细类别管理</a>

						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr align="center">
								<td width="578" height="27">
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>
